<template>
	<view class="content">
		<view class="release_boxT">
			<view class="release_boxT_top">
				<view class="release_boxT_title">维修关键词</view>
				<view class="release_boxT_keyword">
					<text v-for="item in keyword" :key='item'>{{item}}</text>
				</view>
				<view class="payment"><text>应付金额：</text>￥200.00</view>
			</view>
			<view class="release_boxT_bottom">
				<view class="release_boxT_title">电话地址</view>
				<view class="release_boxT_contact">
					<view class="release_boxT_contact_li" @tap="contact">
						<text class="name">联系人</text>
						<text class="contact_zi">张丹</text>
					</view>
					<view class="release_boxT_contact_li" @tap="dialPhone">
						<text class="name">联系电话</text>
						<text class="contact_zi">14598564587</text>
					</view>
					<view class="release_boxT_contact_li">
						<text class="name">地址</text>
						<text class="contact_zi">陕西省渭南市白水县尧禾镇阿东村</text>
					</view>
				</view>
			</view>
			<view class="release_boxT_top border-no">
				<view class="release_boxT_title">接单师傅</view>
				<view class="release_boxT_contact">
					<view class="release_boxT_contact_li" @tap="contact">
						<text class="name">联系人</text>
						<text class="contact_zi">张丹</text>
					</view>
					<view class="release_boxT_contact_li">
						<text class="name">联系电话</text>
						<text class="contact_zi phone">14598564587</text>
					</view>
				</view>
			</view>
		</view>
		<button class="push" @tap="cancel">取消订单</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword:[
					'碎屏',
					'华为P10'
				] 
			};
		},
		methods: {
			dialPhone(){
				uni.makePhoneCall({
					phoneNumber: '18235461258' 
				});
			},
			//取消订单
			cancel(){
				uni.showToast({
					title: '取消订单',
					duration: 2000
				});
			}
		}	 
	}
</script>

<style>
	.content{
		box-shadow: 0 8px 10px -8px #eee inset;
		border-top: 1px solid #eee;
	}
	
	.release_boxO {
		background: #fff;
		padding: 0 40upx;
		width: 100%;
		box-sizing: border-box;
		border-bottom: 20upx solid #ebedf5;
	}

	.release_boxO_li {
		line-height: 100upx;
		border-bottom: 1upx solid #eeeeee;
		height: 100upx;
	}

	.release_boxO_li::last-child {
		border-bottom: none;
	}

	.release_boxO_li .title {
		display: inline-block;
		float: left;
	}

	.release_boxO_li_R {
		color: #a4a8b4;
		font-size: 24upx;
		display: inline-block;
		float: right;
		width: 390upx;
		text-align: right;
	}

	.release_boxO_li_R picker {
		color: #a4a8b4;
		font-size: 24rpx;
		display: inline-block;
	}

	.release_boxO_li_R picker view {
		color: #a4a8b4;
		font-size: 24rpx;
		display: inline-block;
	}

	.release_boxO_li_R .iconfont {
		font-size: 30upx;
		font-weight: 600;
	}

	.release_boxT_top {
		padding: 0 40upx;
		width: 100%;
		box-sizing: border-box;
		border-bottom: 1upx solid #eee;
	}

	.release_boxT_title {
		border-bottom: 1upx solid #eee;
		line-height: 100upx;
	}

	.release_boxT_keyword {
		padding-top: 20upx;
	}

	.release_boxT_keyword text {
		color: #596ffe;
		border: 1px solid #596ffe;
		line-height: 55upx;
		padding: 0 40upx;
		display: inline-block;
		margin: 20upx;
		font-size: 28upx;
		border-radius: 50upx;
	}

	.release_boxT_bottom {
		padding: 0 40upx 50upx;
		width: 100%;
		box-sizing: border-box;
		border-bottom:20upx solid #ebedf5;
	}

	.release_boxT_contact_li {
		display: flex;
		justify-content: space-between;
		line-height: 75upx;
		align-items: center;
	}
	.release_boxT_contact_li .name{
		width: 130upx;
	}
	.release_boxT_contact {
		padding: 0 40upx;
		width: 100%;
		box-sizing: border-box;
	}

	.release_boxT_contact_li .iconfont {
		color: #596ffe;
		font-size: 36upx;
		font-weight: 600;
	}

	.push {
		background: #c0c4d2;
		border: none;
		width: 250upx;
		height: 70upx;
		line-height: 70upx;
		color: #fff;
		border-radius: 5upx;
		font-size: 30upx;
		margin: 70upx auto;
	}
	.contact_zi{
		font-size: 26rpx;
		color: #888888;
		width: 490upx;
		text-align: right;
	}
	.phone{
		color: #6075fe;
/* 		border-bottom: 1px solid #6075fe;
		width: 180upx; */
	}
	.payment{
		color: #ff5d76;
		line-height: 100upx;
	}
	.payment text{
		color: #41434b;
	}
</style>
